import request from "@/utils/request";
export function caseInfoListExpApi(data) {
  return request({
    url: "/product/sampleApply/importSampleTalentApply",
    method: "post",
    data,
    responseType: "blob",
  });
}
// 查询我的申请记录列表
export function selectMySampleTalentApply(query) {
  return request({
    url: "/product/sampleApply/selectMySampleTalentApply",
    method: "get",
    params: query,
  });
}
// 查询我的申请记录列表
export function transferResponsiblePeople(query) {
  return request({
    url: "/product/sampleApply/transferResponsiblePeople",
    method: "get",
    params: query,
  });
}
// 查询我的申请记录列表
export function selectuserList(query) {
  return request({
    url: "/system/user/userList",
    method: "get",
    params: query,
  });
}

// 查询我的申请记录列表
export function selectDeliveryDurationData(query) {
  return request({
    url: "/product/OdsSampleTalentApplyReport/selectDeliveryDurationData",
    method: "get",
    params: query,
  });
}
// 查询样衣申请记录列表
export function selectSampleTalentApplyToDo() {
  return request({
    url: "/product/sampleApply/selectSampleTalentApplyToDo",
    method: "get",
    // params: query
  });
}
// 查询样衣申请记录列表
export function isValidData(id) {
  return request({
    url: "/product/sampleApply/isValidData/" + id,
    method: "get",
    // params: query
  });
}
// 查询样衣申请记录列表
export function listSampleApply(query) {
  return request({
    url: "/product/sampleApply/list",
    method: "get",
    params: query,
  });
}
// 查询样衣申请记录列表
export function dataComparison(query) {
  return request({
    url: "/product/sampleApply/dataComparison",
    method: "get",
    params: query,
  });
}
// 查询样衣申请记录列表
export function deptlistSampleApply(query) {
  return request({
    url: "/product/sampleApply/deplist",
    method: "get",
    params: query,
  });
}
// 查询样衣申请记录列表
export function alllistSampleApply(query) {
  return request({
    url: "/product/sampleApply/alllist",
    method: "get",
    params: query,
  });
}
// 查询样衣申请流转记录
export function selectFlowInstanceRecordListExt(query) {
  return request({
    url: "/flow/flowrecord/selectFlowInstanceRecordListExt",
    method: "get",
    params: query,
  });
}
// 查询样衣申请记录详细
export function getSampleApply(id) {
  return request({
    url: "/product/sampleApply/" + id,
    method: "get",
  });
}

// 新增样衣申请记录
export function uploadIst(data) {
  return request({
    url: "/product/sampleApply/uploadJst",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function checkAfterSaleNoInfoReq(data) {
  return request({
    url: "/product/sampleApply/checkAfterSaleNoInfoReq",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function addSampleApply(data) {
  return request({
    url: "/product/sampleApply",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function startApplyExcel(data) {
  return request({
    url: "/product/sampleApply/startApplyExcel",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function addInnerApply(data) {
  return request({
    url: "/product/sampleApply/addInnerApply",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function checkInventory(data) {
  return request({
    url: "/product/sampleApply/checkInventory",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function checkPackageStatus(data) {
  return request({
    url: "/product/sampleApply/checkPackageStatus",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function checkDingdingStatus(data) {
  return request({
    url: "/product/sampleApply/checkDingdingStatus",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function addInnerContact(data) {
  return request({
    url: "/product/sample/addInnerContact",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function addApply(data) {
  return request({
    url: "/product/sampleApply/addApply",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function SampleTalentApplyCheck(data) {
  return request({
    url: "/product/sampleApply/SampleTalentApplyCheck",
    method: "post",
    data: data,
  });
}
// 新增样衣申请记录
export function startApplyFlow(data) {
  return request({
    url: "/product/sampleApply/startApplyFlow",
    method: "post",
    data: data,
  });
}
//return样衣申请记录
export function returnApply(data) {
  return request({
    url: "/product/sampleApply/returnApply",
    method: "post",
    data: data,
  });
}
//return样衣申请记录
export function pickupApply(data) {
  return request({
    url: "product/sampleApply/pickupApply",
    method: "post",
    data: data,
  });
}
// 修改样衣申请记录
export function updateSampleApply(data) {
  return request({
    url: "/product/sampleApply",
    method: "put",
    data: data,
  });
}
// 修改样衣申请记录
export function batchEditIsReturn(data) {
  return request({
    url: "/product/sampleApply/batchEditIsReturn",
    method: "put",
    data: data,
  });
}
// 删除样衣申请记录
export function delSampleApply(id) {
  return request({
    url: "/product/sampleApply/" + id,
    method: "delete",
  });
}
